package BO;

import java.util.ArrayList;

public class Order {
	private int orderId;
	private int userId;
	private int status;
	private ArrayList<OrderItem> items;
	
	public Order(int orderId, int userId, int status, ArrayList<OrderItem> items) {
		this.orderId = orderId;
		this.userId = userId;
		this.status = status;
		this.items = items;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public ArrayList<OrderItem> getItems() {
		return items;
	}

	public void setItems(ArrayList<OrderItem> items) {
		this.items = items;
	}

	@Override
	public String toString() {
		return "Order [orderId=" + orderId + ", userId=" + userId + ", status="
				+ status + ", items=" + items + "]";
	}
		
}
